//
//  TableViewCell2.m
//  MeiShiDa
//
//  Created by zby on 15/6/30.
//  Copyright (c) 2015年 zby. All rights reserved.
//

#import "TableViewCell2.h"

@implementation TableViewCell2

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        CGRect tempFrame = [[UIScreen mainScreen] bounds];
        CGFloat tempWidth = tempFrame.size.width;
        CGFloat tempHeight = tempFrame.size.height/6.0;
        _CellImageView = [[UIImageView alloc] initWithFrame:CGRectMake(6, 0, tempWidth-12, tempHeight-4)];
        _title = [[UILabel alloc] initWithFrame:CGRectMake(15,(tempHeight-4)*3.5/6.0, 200, tempHeight/6)];
        _title.backgroundColor = [UIColor clearColor];
        [_title setFont:[UIFont fontWithName:@"Helvetica-Bold" size:15]];
        _title.textColor = [UIColor blackColor];
        _descr = [[UILabel alloc] initWithFrame:CGRectMake(15,(tempHeight-4)*4.7/6.0, 300, self.frame.size.height/6)];
        _descr.font = [UIFont systemFontOfSize:12];
        _descr.textColor = [UIColor blackColor];
        [self.CellImageView addSubview:self.title];
        [self.CellImageView addSubview:self.descr];
        [self.contentView addSubview:self.CellImageView];
    }
    return self;
}


@end

